package de.fhhof.robot.control.cmd.concreate;

import java.io.Serializable;

import de.fhhof.robot.control.IMessage;

public class MessageState implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private boolean sent;
	private IMessage msg;
	
	private IMessage ack1;
	private boolean ack1Received;
	
	private IMessage ack2;
	private boolean ack2Received;

	public boolean isSent() {
		return sent;
	}

	public void setSent(boolean sent) {
		this.sent = sent;
	}

	public boolean isAck1Received() {
		return ack1Received;
	}

	public void setAck1Received(boolean ack1Received) {
		this.ack1Received = ack1Received;
	}

	public boolean isAck2Received() {
		return ack2Received;
	}

	public void setAck2Received(boolean ack2Received) {
		this.ack2Received = ack2Received;
	}

	public MessageState() {
		this.sent = false;
		this.ack1Received = false;
		this.ack2Received = false;
	}

	public IMessage getAck1() {
		return ack1;
	}

	public void setAck1(IMessage ack1) {
		this.ack1 = ack1;
	}

	public IMessage getAck2() {
		return ack2;
	}

	public void setAck2(IMessage ack2) {
		this.ack2 = ack2;
	}

	public IMessage getMsg() {
		return msg;
	}

	public void setMsg(IMessage msg) {
		this.msg = msg;
	}
	
}
